package com.zdar;


import com.badlogic.gdx.Game;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.zdar.screens.MainMenuScreen;

public class Zdar extends Game {
	
	public SpriteBatch batch;
	public BitmapFont font;
	

	public Zdar() {

	}
	
	@Override
	public void create () {
		//System.setProperty("org.lwjgl.opengl.Display.allowSoftwareOpenGL", "true");	//was supposed to fix OpenGL not supported error. didn't
		batch = new SpriteBatch();
		font = new BitmapFont();	//default Arial hopefully
				
		play();
	}
	
	private void play(){
		this.setScreen(new MainMenuScreen(this));
	}
	
	public void render(){
		super.render();
	}
	public void dispose(){
		batch.dispose();
		font.dispose();
	}

}
